﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DangKy.aspx.cs" Inherits="DuAn.DangKy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table cellpadding="5" cellspacing="3" class="style2" style="margin-top: 5px">
    
    <tr>
        <td colspan="2" 
            style="background-image: url('images/titleOfRegister.png'); background-repeat: no-repeat">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="2" 
            
            style="background-repeat: no-repeat; font-weight: bold; font-style: italic; text-transform: capitalize; color: #FF0000; vertical-align: middle; text-align: center;">
            <asp:Label ID="lbInform" runat="server" 
                Text="chúc mừng bạn đã đăng ký thành công" Visible="False"></asp:Label>
        </td>
    </tr>
    <tr>
        <td width="20%">
            User Name</td>
        <td>
            <asp:TextBox ID="txtUserName" runat="server" Width="216px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtUserName" ErrorMessage="(*)"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td width="20%">
            Password</td>
        <td>
            <asp:TextBox ID="txtPassword" runat="server" Width="216px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPassword" ErrorMessage="(*)"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td width="20%">
            Confirm Password</td>
        <td>
            <asp:TextBox ID="txtConfPwd" runat="server" Width="216px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtConfPwd" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtPassword" ControlToValidate="txtConfPwd" 
                ErrorMessage="Bạn cần nhập Password và Confirm Password phải giống nhau"></asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td width="20%">
            Name</td>
        <td>
            <asp:TextBox ID="txtName" runat="server" Width="214px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td width="20%">
            Email</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Width="216px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Email is invalid" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td width="20%">
            <asp:Label ID="lbThongBao" runat="server" Text="Thong Bao !!"></asp:Label>
        </td>
        <td>
            <asp:Button ID="btnSubmit" runat="server" Text="Register" Width="84px" 
                onclick="btnSubmit_Click" />
        </td>
    </tr>
    <tr>
        <td width="20%">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>
    </div>
    </form>
</body>
</html>
